package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by hone on 16-11-16.
 * 产品强行下架原因表
 */
@Entity
@Table(name = "mall_product_reason")
@DynamicInsert
@DynamicUpdate
public class MallProductReason extends IDEntityMall {

    @Column(columnDefinition = "MEDIUMTEXT comment '下架原因'")
    private String reason;

    @Column(columnDefinition = "bigint comment '产品ID'")
    private Long productId;

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    @Override
    public String toString() {
        return "MallProductReason{" +
                "reason='" + reason + '\'' +
                ", productId=" + productId +
                ", id=" + id +
                ", dateCreated=" + dateCreated +
                ", lastUpdated=" + lastUpdated +
                ", isDelete=" + isDelete +
                ", version=" + version +
                '}';
    }
}
